package com.txw.javaCore.server.webSocket;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @PROJECT_NAME: JavaCoreB2
 * @DESCRIPTION: 自定义注入webSocket相关的组件
 * @Author: 涂玄武
 * @DATE: 2021/3/5 14:30
 */
@Configuration
public class WebSocketConfig {

    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
